#########################
# SNIPPETS for SNIPPETS #
#########################

# We use a little hack so that the snippet is expanded
# and parsed correctly
snippet snip "Snippet definition"
`!p snip.rv = "snippet"` ${1:Tab_trigger} "${2:Description}"
$0
`!p snip.rv = "endsnippet"`
endsnippet

snippet global "Global snippet"
`!p snip.rv = "global"` !p
$0
`!p snip.rv = "endglobal"`
endsnippet

snippet vis "${VISUAL}"
\$\{VISUAL\}
endsnippet

###################
#  Test unisnips  #
###################

snippet test_visual "${VISUAL}" i
return ${VISUAL}
endsnippet

snippet with_default "with default value"
function ${1:name} {
  ${2://body}
}
endsnippet

snippet test_shell "shell code"
should print date: `! date`
endsnippet


snippet pri "pri 2"
pri 1
endsnippet

snippet pri "pri 2"
pri 2
endsnippet

snippet q
${1:result} = nn.${2|fun1(,fun2(param1\, ,fun3(param1\, param2\, |}prarm_end)
endsnippet

snippet alpha
${1|a,b,c,d,e,f,g,h,i,j,k,m,n|}
endsnippet

# vim:ft=snippets:
